package ar.edu.caece.compiler.error;

import ar.edu.caece.compiler.model.Position;
import ar.edu.caece.compiler.symbol.Symbol;

public class SyntaxError extends Error {
  
  private Symbol expected;

  public SyntaxError(Symbol expected, Symbol received, Position position) {
    super(received, position, "Syntax error on " + position + ". Expected \"" + expected + "\" and received=\"" + received + "\"");
    this.expected = expected;
  }

  public Symbol getExpected() {
    return expected;
  }

  public void setExpected(Symbol expected) {
    this.expected = expected;
  }

}